package com.sm.sales_management.service.impl;


import com.sm.sales_management.domain.Admin;
import com.sm.sales_management.mapper.AdminMapper;
import com.sm.sales_management.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements IAdminService {

    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin login(String username) {
        return adminMapper.login(username);
    }

    @Override
    public Integer register(Admin admin) {
        return adminMapper.register(admin);
    }
}
